home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / develop™ Technical Journal / develop Issue 27 code / Internet_Config_Assistant.sit / Internet Config Assistant / toolkit / CFonts.h < prev    next >
MacBinary  |  1996-06-08  |  5.4 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sat Jun 8 13:22:59 1996, modified Sat Jun 8 13:22:59 1996, creator 'CWIE', type ASCII, 4813 bytes "CFonts.h" , at 0x134d 456 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 43 46 6f 6e 74 73 | 2e 68 00 00 00 00 00 00 |..CFonts|.h......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 12 cd 00 | 00 01 c8 ad df 67 73 ad |........|.....gs.|
|00000060| df 67 73 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.gs.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 4f 68 00 00 |........|....Oh..|
|00000080| 2f 2a 0d 09 46 69 6c 65 | 3a 09 09 43 46 6f 6e 74 |/*..File|:..CFont|
|00000090| 73 2e 68 0d 0d 09 43 6f | 6e 74 61 69 6e 73 3a 09 |s.h...Co|ntains:.|
|000000a0| 46 6f 6e 74 20 6d 61 6e | 61 67 65 72 20 77 72 61 |Font man|ager wra|
|000000b0| 70 70 65 72 20 63 6c 61 | 73 73 65 73 0d 0d 09 57 |pper cla|sses...W|
|000000c0| 72 69 74 74 65 6e 20 62 | 79 3a 09 41 72 6e 6f 20 |ritten b|y:.Arno |
|000000d0| 47 6f 75 72 64 6f 6c 0d | 0d 09 43 6f 70 79 72 69 |Gourdol.|..Copyri|
|000000e0| 67 68 74 3a 09 a9 20 31 | 39 39 34 2d 31 39 39 35 |ght:.. 1|994-1995|
|000000f0| 20 62 79 20 41 70 70 6c | 65 20 43 6f 6d 70 75 74 | by Appl|e Comput|
|00000100| 65 72 2c 20 49 6e 63 2e | 2c 20 61 6c 6c 20 72 69 |er, Inc.|, all ri|
|00000110| 67 68 74 73 20 72 65 73 | 65 72 76 65 64 2e 0d 0d |ghts res|erved...|
|00000120| 09 43 68 61 6e 67 65 20 | 48 69 73 74 6f 72 79 20 |.Change |History |
|00000130| 28 6d 6f 73 74 20 72 65 | 63 65 6e 74 20 66 69 72 |(most re|cent fir|
|00000140| 73 74 29 3a 0d 0d 0d 2a | 2f 0d 0d 23 70 72 61 67 |st):...*|/..#prag|
|00000150| 6d 61 20 6f 6e 63 65 0d | 0d 23 69 66 6e 64 65 66 |ma once.|.#ifndef|
|00000160| 20 5f 5f 43 46 4f 4e 54 | 53 5f 5f 0d 23 64 65 66 | __CFONT|S__.#def|
|00000170| 69 6e 65 20 5f 5f 43 46 | 4f 4e 54 53 5f 5f 0d 0d |ine __CF|ONTS__..|
|00000180| 23 69 6e 63 6c 75 64 65 | 20 3c 51 75 69 63 6b 64 |#include| <Quickd|
|00000190| 72 61 77 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |raw.h>.#|include |
|000001a0| 3c 46 6f 6e 74 73 2e 68 | 3e 0d 23 69 6e 63 6c 75 |<Fonts.h|>.#inclu|
|000001b0| 64 65 20 3c 53 63 72 69 | 70 74 2e 68 3e 0d 23 69 |de <Scri|pt.h>.#i|
|000001c0| 6e 63 6c 75 64 65 20 3c | 54 65 78 74 45 64 69 74 |nclude <|TextEdit|
|000001d0| 2e 68 3e 0d 23 69 6e 63 | 6c 75 64 65 20 3c 54 65 |.h>.#inc|lude <Te|
|000001e0| 78 74 55 74 69 6c 73 2e | 68 3e 0d 0d 23 69 6e 63 |xtUtils.|h>..#inc|
|000001f0| 6c 75 64 65 20 22 43 52 | 65 63 74 2e 68 22 0d 0d |lude "CR|ect.h"..|
|00000200| 65 6e 75 6d 0d 7b 0d 09 | 73 6d 4e 6f 53 63 72 69 |enum.{..|smNoScri|
|00000210| 70 74 20 3d 20 2d 31 30 | 09 09 09 09 09 09 09 2f |pt = -10|......./|
|00000220| 2f 20 49 6e 76 61 6c 69 | 64 20 73 63 72 69 70 74 |/ Invali|d script|
|00000230| 20 63 6f 64 65 0d 7d 3b | 0d 0d 74 79 70 65 64 65 | code.};|..typede|
|00000240| 66 20 65 6e 75 6d 20 46 | 6f 6e 74 43 6f 64 65 0d |f enum F|ontCode.|
|00000250| 7b 0d 09 6b 4d 6f 6e 6f | 73 70 61 63 65 64 46 6f |{..kMono|spacedFo|
|00000260| 6e 74 20 3d 20 73 6d 53 | 63 72 69 70 74 4d 6f 6e |nt = smS|criptMon|
|00000270| 6f 46 6f 6e 64 53 69 7a | 65 2c 09 09 2f 2f 20 44 |oFondSiz|e,..// D|
|00000280| 65 66 61 75 6c 74 20 6d | 6f 6e 6f 2d 73 70 61 63 |efault m|ono-spac|
|00000290| 65 64 20 66 6f 6e 74 20 | 28 4d 6f 6e 61 63 6f 20 |ed font |(Monaco |
|000002a0| 39 29 0d 09 6b 50 72 65 | 66 65 72 65 64 46 6f 6e |9)..kPre|feredFon|
|000002b0| 74 20 3d 20 73 6d 53 63 | 72 69 70 74 50 72 65 66 |t = smSc|riptPref|
|000002c0| 46 6f 6e 64 53 69 7a 65 | 2c 09 09 2f 2f 20 50 72 |FondSize|,..// Pr|
|000002d0| 65 66 65 72 65 64 20 66 | 6f 6e 74 20 66 6f 72 20 |efered f|ont for |
|000002e0| 74 68 65 20 73 63 72 69 | 70 74 0d 09 6b 53 6d 61 |the scri|pt..kSma|
|000002f0| 6c 6c 46 6f 6e 74 20 3d | 20 73 6d 53 63 72 69 70 |llFont =| smScrip|
|00000300| 74 53 6d 61 6c 6c 46 6f | 6e 64 53 69 7a 65 2c 09 |tSmallFo|ndSize,.|
|00000310| 09 09 2f 2f 20 44 65 66 | 61 75 6c 74 20 73 6d 61 |..// Def|ault sma|
|00000320| 6c 6c 20 66 6f 6e 74 20 | 28 47 65 6e 65 76 61 20 |ll font |(Geneva |
|00000330| 39 29 0d 09 6b 53 79 73 | 74 65 6d 46 6f 6e 74 20 |9)..kSys|temFont |
|00000340| 3d 20 73 6d 53 63 72 69 | 70 74 53 79 73 46 6f 6e |= smScri|ptSysFon|
|00000350| 64 53 69 7a 65 2c 09 09 | 09 2f 2f 20 44 65 73 69 |dSize,..|.// Desi|
|00000360| 67 6e 61 74 65 20 74 68 | 65 20 73 79 73 74 65 6d |gnate th|e system|
|00000370| 20 66 6f 6e 74 20 28 43 | 68 69 63 61 67 6f 20 31 | font (C|hicago 1|
|00000380| 32 20 66 6f 72 20 52 6f | 6d 61 6e 20 73 79 73 74 |2 for Ro|man syst|
|00000390| 65 6d 73 29 0d 09 6b 41 | 70 70 6c 69 63 61 74 69 |ems)..kA|pplicati|
|000003a0| 6f 6e 46 6f 6e 74 20 3d | 20 73 6d 53 63 72 69 70 |onFont =| smScrip|
|000003b0| 74 41 70 70 46 6f 6e 64 | 53 69 7a 65 2c 09 09 2f |tAppFond|Size,../|
|000003c0| 2f 20 44 65 66 61 75 6c | 74 20 61 70 70 6c 69 63 |/ Defaul|t applic|
|000003d0| 61 74 69 6f 6e 20 66 6f | 6e 74 0d 09 6b 48 65 6c |ation fo|nt..kHel|
|000003e0| 70 4d 61 6e 61 67 65 72 | 46 6f 6e 74 20 3d 20 73 |pManager|Font = s|
|000003f0| 6d 53 63 72 69 70 74 48 | 65 6c 70 46 6f 6e 64 53 |mScriptH|elpFondS|
|00000400| 69 7a 65 09 09 2f 2f 20 | 44 65 66 61 75 6c 74 20 |ize..// |Default |
|00000410| 66 6f 6e 74 20 75 73 65 | 64 20 62 79 20 74 68 65 |font use|d by the|
|00000420| 20 48 65 6c 70 20 4d 61 | 6e 61 67 65 72 20 66 6f | Help Ma|nager fo|
|00000430| 72 20 42 61 6c 6c 6f 6f | 6e 20 68 65 6c 70 0d 7d |r Balloo|n help.}|
|00000440| 20 46 6f 6e 74 43 6f 64 | 65 3b 0d 0d 0d 0d 0d 2f | FontCod|e;...../|
|00000450| 2f 20 43 61 63 68 65 20 | 66 6f 72 20 74 68 65 20 |/ Cache |for the |
|00000460| 69 6e 74 65 72 6e 61 74 | 69 6f 6e 61 6c 20 72 65 |internat|ional re|
|00000470| 73 6f 75 72 63 65 73 20 | 66 6f 72 20 74 68 65 20 |sources |for the |
|00000480| 73 79 73 74 65 6d 20 73 | 63 72 69 70 74 0d 65 78 |system s|cript.ex|
|00000490| 74 65 72 6e 20 48 61 6e | 64 6c 65 20 67 49 74 6c |tern Han|dle gItl|
|000004a0| 30 3b 0d 65 78 74 65 72 | 6e 20 48 61 6e 64 6c 65 |0;.exter|n Handle|
|000004b0| 20 67 49 74 6c 32 3b 0d | 0d 0d 63 6c 61 73 73 20 | gItl2;.|..class |
|000004c0| 43 46 6f 6e 74 53 70 65 | 63 0d 7b 0d 70 75 62 6c |CFontSpe|c.{.publ|
|000004d0| 69 63 3a 0d 09 2f 2f 20 | 63 6f 6e 73 74 72 75 63 |ic:..// |construc|
|000004e0| 74 6f 72 73 0d 09 43 46 | 6f 6e 74 53 70 65 63 28 |tors..CF|ontSpec(|
|000004f0| 76 6f 69 64 29 3b 0d 09 | 43 46 6f 6e 74 53 70 65 |void);..|CFontSpe|
|00000500| 63 28 53 63 72 69 70 74 | 43 6f 64 65 20 73 63 72 |c(Script|Code scr|
|00000510| 69 70 74 43 6f 64 65 2c | 0d 09 09 09 20 20 46 6f |iptCode,|.... Fo|
|00000520| 6e 74 43 6f 64 65 20 66 | 6f 6e 74 29 3b 0d 09 09 |ntCode f|ont);...|
|00000530| 09 20 20 0d 09 2f 2f 20 | 64 65 73 74 72 75 63 74 |. ..// |destruct|
|00000540| 6f 72 0d 09 7e 43 46 6f | 6e 74 53 70 65 63 28 76 |or..~CFo|ntSpec(v|
|00000550| 6f 69 64 29 3b 0d 0d 09 | 2f 2f 20 6d 75 74 61 74 |oid);...|// mutat|
|00000560| 6f 72 73 0d 09 76 6f 69 | 64 20 53 65 74 46 6f 6e |ors..voi|d SetFon|
|00000570| 74 28 53 63 72 69 70 74 | 43 6f 64 65 20 73 63 72 |t(Script|Code scr|
|00000580| 69 70 74 43 6f 64 65 2c | 0d 09 09 09 09 20 20 20 |iptCode,|..... |
|00000590| 46 6f 6e 74 43 6f 64 65 | 20 66 6f 6e 74 20 3d 20 |FontCode| font = |
|000005a0| 6b 53 79 73 74 65 6d 46 | 6f 6e 74 29 3b 0d 09 42 |kSystemF|ont);..B|
|000005b0| 6f 6f 6c 65 61 6e 20 53 | 65 74 46 6f 6e 74 28 53 |oolean S|etFont(S|
|000005c0| 63 72 69 70 74 43 6f 64 | 65 20 73 63 72 69 70 74 |criptCod|e script|
|000005d0| 43 6f 64 65 2c 0d 09 09 | 09 09 09 43 6f 6e 73 74 |Code,...|...Const|
|000005e0| 53 74 72 32 35 35 50 61 | 72 61 6d 20 66 6f 6e 74 |Str255Pa|ram font|
|000005f0| 4e 61 6d 65 29 3b 0d 09 | 76 6f 69 64 20 53 65 74 |Name);..|void Set|
|00000600| 46 6f 6e 74 49 44 28 73 | 68 6f 72 74 20 66 6f 6e |FontID(s|hort fon|
|00000610| 74 29 3b 0d 09 76 6f 69 | 64 20 53 65 74 53 69 7a |t);..voi|d SetSiz|
|00000620| 65 28 73 68 6f 72 74 20 | 73 69 7a 65 29 3b 0d 09 |e(short |size);..|
|00000630| 76 6f 69 64 20 53 65 74 | 53 74 79 6c 65 28 73 68 |void Set|Style(sh|
|00000640| 6f 72 74 20 73 74 79 6c | 65 29 3b 0d 09 76 6f 69 |ort styl|e);..voi|
|00000650| 64 20 53 65 74 4d 6f 64 | 65 28 73 68 6f 72 74 20 |d SetMod|e(short |
|00000660| 6d 6f 64 65 29 3b 0d 0d | 09 2f 2f 20 61 63 63 65 |mode);..|.// acce|
|00000670| 73 73 6f 72 73 0d 09 69 | 6e 6c 69 6e 65 20 42 6f |ssors..i|nline Bo|
|00000680| 6f 6c 65 61 6e 20 49 73 | 4c 65 66 74 54 6f 52 69 |olean Is|LeftToRi|
|00000690| 67 68 74 28 76 6f 69 64 | 29 20 63 6f 6e 73 74 3b |ght(void|) const;|
|000006a0| 0d 09 69 6e 6c 69 6e 65 | 20 42 6f 6f 6c 65 61 6e |..inline| Boolean|
|000006b0| 20 49 73 52 69 67 68 74 | 54 6f 4c 65 66 74 28 76 | IsRight|ToLeft(v|
|000006c0| 6f 69 64 29 20 63 6f 6e | 73 74 3b 0d 09 69 6e 6c |oid) con|st;..inl|
|000006d0| 69 6e 65 20 53 63 72 69 | 70 74 43 6f 64 65 20 47 |ine Scri|ptCode G|
|000006e0| 65 74 53 63 72 69 70 74 | 43 6f 64 65 28 76 6f 69 |etScript|Code(voi|
|000006f0| 64 29 20 63 6f 6e 73 74 | 3b 0d 09 69 6e 6c 69 6e |d) const|;..inlin|
|00000700| 65 20 76 6f 69 64 20 47 | 65 74 46 6f 6e 74 28 53 |e void G|etFont(S|
|00000710| 74 72 32 35 35 26 20 66 | 6f 6e 74 4e 61 6d 65 29 |tr255& f|ontName)|
|00000720| 20 63 6f 6e 73 74 3b 0d | 09 69 6e 6c 69 6e 65 20 | const;.|.inline |
|00000730| 73 68 6f 72 74 20 47 65 | 74 46 6f 6e 74 28 76 6f |short Ge|tFont(vo|
|00000740| 69 64 29 20 63 6f 6e 73 | 74 3b 0d 09 69 6e 6c 69 |id) cons|t;..inli|
|00000750| 6e 65 20 73 68 6f 72 74 | 20 47 65 74 53 69 7a 65 |ne short| GetSize|
|00000760| 28 76 6f 69 64 29 20 63 | 6f 6e 73 74 3b 0d 09 69 |(void) c|onst;..i|
|00000770| 6e 6c 69 6e 65 20 73 68 | 6f 72 74 20 47 65 74 53 |nline sh|ort GetS|
|00000780| 74 79 6c 65 28 76 6f 69 | 64 29 20 63 6f 6e 73 74 |tyle(voi|d) const|
|00000790| 3b 0d 09 69 6e 6c 69 6e | 65 20 73 68 6f 72 74 20 |;..inlin|e short |
|000007a0| 47 65 74 4d 6f 64 65 28 | 76 6f 69 64 29 20 63 6f |GetMode(|void) co|
|000007b0| 6e 73 74 3b 0d 09 76 6f | 69 64 20 47 65 74 46 6f |nst;..vo|id GetFo|
|000007c0| 6e 74 4d 65 74 72 69 63 | 73 28 73 68 6f 72 74 26 |ntMetric|s(short&|
|000007d0| 20 6c 69 6e 65 48 65 69 | 67 68 74 2c 0d 09 09 09 | lineHei|ght,....|
|000007e0| 09 09 20 73 68 6f 72 74 | 26 20 61 73 63 65 6e 74 |.. short|& ascent|
|000007f0| 2c 0d 09 09 09 09 09 20 | 73 68 6f 72 74 26 20 64 |,...... |short& d|
|00000800| 65 73 63 65 6e 74 29 3b | 0d 09 69 6e 6c 69 6e 65 |escent);|..inline|
|00000810| 20 55 49 6e 74 31 36 20 | 47 65 74 4c 69 6e 65 48 | UInt16 |GetLineH|
|00000820| 65 69 67 68 74 28 76 6f | 69 64 29 3b 0d 09 09 09 |eight(vo|id);....|
|00000830| 09 09 20 0d 09 2f 2f 20 | 73 74 72 69 6e 67 20 6d |.. ..// |string m|
|00000840| 61 6e 69 70 75 6c 61 74 | 69 6f 6e 0d 09 76 6f 69 |anipulat|ion..voi|
|00000850| 64 20 54 72 75 6e 63 53 | 74 72 69 6e 67 28 73 68 |d TruncS|tring(sh|
|00000860| 6f 72 74 20 77 69 64 74 | 68 2c 0d 09 09 09 09 09 |ort widt|h,......|
|00000870| 20 53 74 72 32 35 35 20 | 73 74 72 69 6e 67 2c 0d | Str255 |string,.|
|00000880| 09 09 09 09 09 20 54 72 | 75 6e 63 43 6f 64 65 20 |..... Tr|uncCode |
|00000890| 77 68 65 72 65 20 3d 20 | 73 6d 54 72 75 6e 63 4d |where = |smTruncM|
|000008a0| 69 64 64 6c 65 29 3b 0d | 09 73 68 6f 72 74 20 4d |iddle);.|.short M|
|000008b0| 65 61 73 75 72 65 53 74 | 72 69 6e 67 28 43 6f 6e |easureSt|ring(Con|
|000008c0| 73 74 53 74 72 32 35 35 | 50 61 72 61 6d 20 73 74 |stStr255|Param st|
|000008d0| 72 69 6e 67 29 20 63 6f | 6e 73 74 3b 0d 09 76 6f |ring) co|nst;..vo|
|000008e0| 69 64 20 44 72 61 77 53 | 74 72 69 6e 67 28 43 6f |id DrawS|tring(Co|
|000008f0| 6e 73 74 53 74 72 32 35 | 35 50 61 72 61 6d 20 73 |nstStr25|5Param s|
|00000900| 74 72 69 6e 67 29 20 63 | 6f 6e 73 74 3b 0d 09 76 |tring) c|onst;..v|
|00000910| 6f 69 64 20 44 72 61 77 | 54 65 78 74 28 43 6f 6e |oid Draw|Text(Con|
|00000920| 73 74 53 74 72 32 35 35 | 50 61 72 61 6d 20 73 74 |stStr255|Param st|
|00000930| 72 69 6e 67 2c 0d 09 09 | 09 09 20 20 63 6f 6e 73 |ring,...|.. cons|
|00000940| 74 20 43 52 65 63 74 26 | 20 62 6f 75 6e 64 73 2c |t CRect&| bounds,|
|00000950| 0d 09 09 09 09 20 20 73 | 68 6f 72 74 20 61 6c 69 |..... s|hort ali|
|00000960| 67 6e 20 3d 20 74 65 46 | 6c 75 73 68 44 65 66 61 |gn = teF|lushDefa|
|00000970| 75 6c 74 29 20 63 6f 6e | 73 74 3b 0d 09 54 45 48 |ult) con|st;..TEH|
|00000980| 61 6e 64 6c 65 20 54 45 | 4e 65 77 28 76 6f 69 64 |andle TE|New(void|
|00000990| 29 20 63 6f 6e 73 74 3b | 0d 09 76 6f 69 64 20 53 |) const;|..void S|
|000009a0| 65 74 50 6f 72 74 46 6f | 6e 74 28 47 72 61 66 50 |etPortFo|nt(GrafP|
|000009b0| 74 72 20 70 6f 72 74 29 | 20 63 6f 6e 73 74 3b 0d |tr port)| const;.|
|000009c0| 0d 09 73 74 61 74 69 63 | 20 63 6f 6e 73 74 20 43 |..static| const C|
|000009d0| 46 6f 6e 74 53 70 65 63 | 26 20 47 65 74 53 79 73 |FontSpec|& GetSys|
|000009e0| 74 65 6d 46 6f 6e 74 53 | 70 65 63 28 76 6f 69 64 |temFontS|pec(void|
|000009f0| 29 3b 0d 09 73 74 61 74 | 69 63 20 63 6f 6e 73 74 |);..stat|ic const|
|00000a00| 20 43 46 6f 6e 74 53 70 | 65 63 26 20 47 65 74 53 | CFontSp|ec& GetS|
|00000a10| 6d 61 6c 6c 46 6f 6e 74 | 53 70 65 63 28 76 6f 69 |mallFont|Spec(voi|
|00000a20| 64 29 3b 0d 09 73 74 61 | 74 69 63 20 48 61 6e 64 |d);..sta|tic Hand|
|00000a30| 6c 65 20 47 65 74 49 6e | 74 6c 52 65 73 6f 75 72 |le GetIn|tlResour|
|00000a40| 63 65 28 73 68 6f 72 74 | 20 69 64 29 3b 0d 0d 09 |ce(short| id);...|
|00000a50| 2f 2f 20 4f 62 6a 65 63 | 74 20 73 74 61 74 65 20 |// Objec|t state |
|00000a60| 63 68 61 6e 67 65 73 0d | 09 76 6f 69 64 20 53 61 |changes.|.void Sa|
|00000a70| 76 65 28 76 6f 69 64 29 | 3b 0d 09 76 6f 69 64 20 |ve(void)|;..void |
|00000a80| 52 65 73 74 6f 72 65 28 | 76 6f 69 64 29 3b 0d 09 |Restore(|void);..|
|00000a90| 76 6f 69 64 20 55 73 65 | 28 76 6f 69 64 29 20 63 |void Use|(void) c|
|00000aa0| 6f 6e 73 74 3b 0d 70 72 | 69 76 61 74 65 3a 0d 0d |onst;.pr|ivate:..|
|00000ab0| 09 2f 2f 20 43 61 63 68 | 65 73 0d 09 53 63 72 69 |.// Cach|es..Scri|
|00000ac0| 70 74 43 6f 64 65 20 46 | 6f 6e 74 54 6f 53 63 72 |ptCode F|ontToScr|
|00000ad0| 69 70 74 28 73 68 6f 72 | 74 20 66 6f 6e 74 29 3b |ipt(shor|t font);|
|00000ae0| 0d 09 42 6f 6f 6c 65 61 | 6e 20 53 75 70 70 6f 72 |..Boolea|n Suppor|
|00000af0| 74 43 6f 6e 64 65 6e 73 | 65 28 53 63 72 69 70 74 |tCondens|e(Script|
|00000b00| 43 6f 64 65 20 73 63 72 | 69 70 74 29 3b 0d 09 42 |Code scr|ipt);..B|
|00000b10| 6f 6f 6c 65 61 6e 20 53 | 63 72 69 70 74 49 73 52 |oolean S|criptIsR|
|00000b20| 54 4c 28 53 63 72 69 70 | 74 43 6f 64 65 20 73 63 |TL(Scrip|tCode sc|
|00000b30| 72 69 70 74 29 3b 0d 09 | 6c 6f 6e 67 20 53 63 72 |ript);..|long Scr|
|00000b40| 69 70 74 46 6f 6e 74 28 | 53 63 72 69 70 74 43 6f |iptFont(|ScriptCo|
|00000b50| 64 65 20 73 63 72 69 70 | 74 2c 20 73 68 6f 72 74 |de scrip|t, short|
|00000b60| 20 66 6f 6e 74 29 3b 0d | 09 0d 09 53 63 72 69 70 | font);.|...Scrip|
|00000b70| 74 43 6f 64 65 20 66 53 | 63 72 69 70 74 3b 09 09 |tCode fS|cript;..|
|00000b80| 2f 2f 20 53 63 72 69 70 | 74 20 6f 66 20 74 68 65 |// Scrip|t of the|
|00000b90| 20 66 6f 6e 74 0d 09 73 | 68 6f 72 74 20 66 46 6f | font..s|hort fFo|
|00000ba0| 6e 74 3b 09 09 09 2f 2f | 20 46 6f 6e 74 20 49 44 |nt;...//| Font ID|
|00000bb0| 0d 09 73 68 6f 72 74 20 | 66 53 69 7a 65 3b 20 09 |..short |fSize; .|
|00000bc0| 09 09 2f 2f 20 46 6f 6e | 74 20 73 69 7a 65 0d 09 |..// Fon|t size..|
|00000bd0| 73 68 6f 72 74 20 66 53 | 74 79 6c 65 3b 09 09 09 |short fS|tyle;...|
|00000be0| 2f 2f 20 46 6f 6e 74 20 | 73 74 79 6c 65 20 28 62 |// Font |style (b|
|00000bf0| 6f 6c 64 2c 20 69 74 61 | 6c 69 63 2c 20 65 74 63 |old, ita|lic, etc|
|00000c00| 2e 2e 2e 29 0d 09 73 68 | 6f 72 74 20 66 4d 6f 64 |...)..sh|ort fMod|
|00000c10| 65 3b 09 09 09 2f 2f 20 | 46 6f 6e 74 20 6d 6f 64 |e;...// |Font mod|
|00000c20| 65 0d 0d 09 73 68 6f 72 | 74 20 66 4c 69 6e 65 48 |e...shor|t fLineH|
|00000c30| 65 69 67 68 74 3b 09 09 | 2f 2f 20 48 65 69 67 68 |eight;..|// Heigh|
|00000c40| 74 20 6f 66 20 61 20 6c | 69 6e 65 20 6f 66 20 74 |t of a l|ine of t|
|00000c50| 65 78 74 0d 09 73 68 6f | 72 74 20 66 41 73 63 65 |ext..sho|rt fAsce|
|00000c60| 6e 74 3b 09 09 09 2f 2f | 20 41 73 63 65 6e 74 20 |nt;...//| Ascent |
|00000c70| 6f 66 20 61 20 6c 69 6e | 65 20 6f 66 20 74 65 78 |of a lin|e of tex|
|00000c80| 74 0d 09 73 68 6f 72 74 | 20 66 44 65 73 63 65 6e |t..short| fDescen|
|00000c90| 74 3b 09 09 09 2f 2f 20 | 44 65 73 63 65 6e 74 20 |t;...// |Descent |
|00000ca0| 6f 66 20 61 20 6c 69 6e | 65 20 6f 66 20 74 65 78 |of a lin|e of tex|
|00000cb0| 74 0d 09 42 6f 6f 6c 65 | 61 6e 20 66 52 69 67 68 |t..Boole|an fRigh|
|00000cc0| 74 54 6f 4c 65 66 74 3b | 09 2f 2f 20 54 72 75 65 |tToLeft;|.// True|
|00000cd0| 20 69 66 20 74 68 65 20 | 66 6f 6e 74 20 69 73 20 | if the |font is |
|00000ce0| 61 20 72 69 67 68 74 2d | 74 6f 2d 6c 65 66 74 20 |a right-|to-left |
|00000cf0| 66 6f 6e 74 0d 0d 09 2f | 2f 20 43 61 63 68 65 64 |font.../|/ Cached|
|00000d00| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 0d 09 2f 2f | informa|tion..//|
|00000d10| 20 49 74 65 6d 20 6f 6e | 20 66 69 72 73 74 20 6c | Item on| first l|
|00000d20| 69 6e 65 20 69 73 20 69 | 6e 70 75 74 2c 20 73 65 |ine is i|nput, se|
|00000d30| 63 6f 6e 64 20 6c 69 6e | 65 20 69 73 20 6f 75 74 |cond lin|e is out|
|00000d40| 70 75 74 0d 09 73 74 61 | 74 69 63 20 73 68 6f 72 |put..sta|tic shor|
|00000d50| 74 20 66 46 6f 6e 74 54 | 6f 53 63 72 69 70 74 43 |t fFontT|oScriptC|
|00000d60| 61 63 68 65 46 6f 6e 74 | 3b 0d 09 73 74 61 74 69 |acheFont|;..stati|
|00000d70| 63 20 53 63 72 69 70 74 | 43 6f 64 65 20 66 46 6f |c Script|Code fFo|
|00000d80| 6e 74 54 6f 53 63 72 69 | 70 74 43 61 63 68 65 53 |ntToScri|ptCacheS|
|00000d90| 63 72 69 70 74 3b 0d 09 | 0d 09 73 74 61 74 69 63 |cript;..|..static|
|00000da0| 20 53 63 72 69 70 74 43 | 6f 64 65 20 66 53 75 70 | ScriptC|ode fSup|
|00000db0| 70 6f 72 74 73 43 6f 6e | 64 65 6e 73 65 43 61 63 |portsCon|denseCac|
|00000dc0| 68 65 53 63 72 69 70 74 | 3b 0d 09 73 74 61 74 69 |heScript|;..stati|
|00000dd0| 63 20 42 6f 6f 6c 65 61 | 6e 20 66 53 75 70 70 6f |c Boolea|n fSuppo|
|00000de0| 72 74 73 43 6f 6e 64 65 | 6e 73 65 43 61 63 68 65 |rtsConde|nseCache|
|00000df0| 3b 0d 09 0d 09 73 74 61 | 74 69 63 20 53 63 72 69 |;....sta|tic Scri|
|00000e00| 70 74 43 6f 64 65 20 66 | 53 63 72 69 70 74 49 73 |ptCode f|ScriptIs|
|00000e10| 52 54 4c 43 61 63 68 65 | 53 63 72 69 70 74 3b 0d |RTLCache|Script;.|
|00000e20| 09 73 74 61 74 69 63 20 | 42 6f 6f 6c 65 61 6e 20 |.static |Boolean |
|00000e30| 66 53 63 72 69 70 74 49 | 73 52 54 4c 43 61 63 68 |fScriptI|sRTLCach|
|00000e40| 65 3b 09 2f 2f 20 54 72 | 75 65 20 69 66 20 72 74 |e;.// Tr|ue if rt|
|00000e50| 6c 0d 09 0d 09 73 74 61 | 74 69 63 20 53 63 72 69 |l....sta|tic Scri|
|00000e60| 70 74 43 6f 64 65 20 66 | 53 63 72 69 70 74 46 6f |ptCode f|ScriptFo|
|00000e70| 6e 74 43 61 63 68 65 53 | 63 72 69 70 74 3b 0d 09 |ntCacheS|cript;..|
|00000e80| 73 74 61 74 69 63 20 73 | 68 6f 72 74 20 66 53 63 |static s|hort fSc|
|00000e90| 72 69 70 74 46 6f 6e 74 | 43 61 63 68 65 46 6f 6e |riptFont|CacheFon|
|00000ea0| 74 3b 0d 09 73 74 61 74 | 69 63 20 6c 6f 6e 67 20 |t;..stat|ic long |
|00000eb0| 66 53 63 72 69 70 74 46 | 6f 6e 74 43 61 63 68 65 |fScriptF|ontCache|
|00000ec0| 46 6f 6e 74 41 6e 64 53 | 69 7a 65 3b 09 09 0d 0d |FontAndS|ize;....|
|00000ed0| 09 73 74 61 74 69 63 20 | 42 6f 6f 6c 65 61 6e 20 |.static |Boolean |
|00000ee0| 70 53 79 73 74 65 6d 46 | 6f 6e 74 49 6e 69 74 65 |pSystemF|ontInite|
|00000ef0| 64 3b 0d 09 2f 2f 20 73 | 74 61 74 69 63 20 43 46 |d;..// s|tatic CF|
|00000f00| 6f 6e 74 53 70 65 63 20 | 70 53 79 73 74 65 6d 46 |ontSpec |pSystemF|
|00000f10| 6f 6e 74 53 70 65 63 3b | 0d 0d 09 73 74 61 74 69 |ontSpec;|...stati|
|00000f20| 63 20 42 6f 6f 6c 65 61 | 6e 20 70 53 6d 61 6c 6c |c Boolea|n pSmall|
|00000f30| 46 6f 6e 74 49 6e 69 74 | 65 64 3b 0d 09 2f 2f 20 |FontInit|ed;..// |
|00000f40| 73 74 61 74 69 63 20 43 | 46 6f 6e 74 53 70 65 63 |static C|FontSpec|
|00000f50| 20 70 53 6d 61 6c 6c 46 | 6f 6e 74 53 70 65 63 3b | pSmallF|ontSpec;|
|00000f60| 0d 0d 09 73 74 61 74 69 | 63 20 48 61 6e 64 6c 65 |...stati|c Handle|
|00000f70| 20 70 49 74 6c 30 3b 0d | 09 73 74 61 74 69 63 20 | pItl0;.|.static |
|00000f80| 48 61 6e 64 6c 65 20 70 | 49 74 6c 31 3b 0d 09 73 |Handle p|Itl1;..s|
|00000f90| 74 61 74 69 63 20 48 61 | 6e 64 6c 65 20 70 49 74 |tatic Ha|ndle pIt|
|00000fa0| 6c 32 3b 0d 0d 09 73 74 | 61 74 69 63 20 48 61 6e |l2;...st|atic Han|
|00000fb0| 64 6c 65 20 46 65 74 63 | 68 49 6e 74 6c 52 65 73 |dle Fetc|hIntlRes|
|00000fc0| 6f 75 72 63 65 28 73 68 | 6f 72 74 20 69 64 29 3b |ource(sh|ort id);|
|00000fd0| 0d 0d 23 69 66 6e 64 65 | 66 20 4e 44 45 42 55 47 |..#ifnde|f NDEBUG|
|00000fe0| 0d 09 73 68 6f 72 74 20 | 66 53 61 76 65 43 6f 75 |..short |fSaveCou|
|00000ff0| 6e 74 3b 09 09 2f 2f 20 | 4e 75 6d 62 65 72 20 6f |nt;..// |Number o|
|00001000| 66 20 74 69 6d 65 73 20 | 53 61 76 65 28 29 20 68 |f times |Save() h|
|00001010| 61 73 20 62 65 65 6e 20 | 63 61 6c 6c 65 64 0d 23 |as been |called.#|
|00001020| 65 6e 64 69 66 0d 0d 7d | 3b 0d 0d 0d 0d 2f 2f 0d |endif..}|;....//.|
|00001030| 2f 2f 09 43 46 6f 6e 74 | 53 70 65 63 20 69 6e 6c |//.CFont|Spec inl|
|00001040| 69 6e 65 73 0d 2f 2f 0d | 2f 2f 0d 0d 69 6e 6c 69 |ines.//.|//..inli|
|00001050| 6e 65 20 42 6f 6f 6c 65 | 61 6e 20 43 46 6f 6e 74 |ne Boole|an CFont|
|00001060| 53 70 65 63 3a 3a 49 73 | 4c 65 66 74 54 6f 52 69 |Spec::Is|LeftToRi|
|00001070| 67 68 74 28 76 6f 69 64 | 29 20 63 6f 6e 73 74 0d |ght(void|) const.|
|00001080| 7b 0d 09 72 65 74 75 72 | 6e 20 21 66 52 69 67 68 |{..retur|n !fRigh|
|00001090| 74 54 6f 4c 65 66 74 3b | 0d 7d 0d 0d 69 6e 6c 69 |tToLeft;|.}..inli|
|000010a0| 6e 65 20 42 6f 6f 6c 65 | 61 6e 20 43 46 6f 6e 74 |ne Boole|an CFont|
|000010b0| 53 70 65 63 3a 3a 49 73 | 52 69 67 68 74 54 6f 4c |Spec::Is|RightToL|
|000010c0| 65 66 74 28 76 6f 69 64 | 29 20 63 6f 6e 73 74 0d |eft(void|) const.|
|000010d0| 7b 0d 09 72 65 74 75 72 | 6e 20 66 52 69 67 68 74 |{..retur|n fRight|
|000010e0| 54 6f 4c 65 66 74 3b 0d | 7d 0d 0d 69 6e 6c 69 6e |ToLeft;.|}..inlin|
|000010f0| 65 20 53 63 72 69 70 74 | 43 6f 64 65 20 43 46 6f |e Script|Code CFo|
|00001100| 6e 74 53 70 65 63 3a 3a | 47 65 74 53 63 72 69 70 |ntSpec::|GetScrip|
|00001110| 74 43 6f 64 65 28 76 6f | 69 64 29 20 63 6f 6e 73 |tCode(vo|id) cons|
|00001120| 74 0d 7b 0d 09 72 65 74 | 75 72 6e 20 66 53 63 72 |t.{..ret|urn fScr|
|00001130| 69 70 74 3b 0d 7d 0d 0d | 69 6e 6c 69 6e 65 20 76 |ipt;.}..|inline v|
|00001140| 6f 69 64 20 43 46 6f 6e | 74 53 70 65 63 3a 3a 47 |oid CFon|tSpec::G|
|00001150| 65 74 46 6f 6e 74 28 53 | 74 72 32 35 35 26 20 66 |etFont(S|tr255& f|
|00001160| 6f 6e 74 4e 61 6d 65 29 | 20 63 6f 6e 73 74 0d 7b |ontName)| const.{|
|00001170| 0d 09 3a 3a 47 65 74 46 | 6f 6e 74 4e 61 6d 65 28 |..::GetF|ontName(|
|00001180| 66 46 6f 6e 74 2c 20 66 | 6f 6e 74 4e 61 6d 65 29 |fFont, f|ontName)|
|00001190| 3b 0d 7d 0d 0d 69 6e 6c | 69 6e 65 20 73 68 6f 72 |;.}..inl|ine shor|
|000011a0| 74 20 43 46 6f 6e 74 53 | 70 65 63 3a 3a 47 65 74 |t CFontS|pec::Get|
|000011b0| 46 6f 6e 74 28 76 6f 69 | 64 29 20 63 6f 6e 73 74 |Font(voi|d) const|
|000011c0| 0d 7b 0d 09 72 65 74 75 | 72 6e 20 66 46 6f 6e 74 |.{..retu|rn fFont|
|000011d0| 3b 0d 7d 0d 0d 69 6e 6c | 69 6e 65 20 73 68 6f 72 |;.}..inl|ine shor|
|000011e0| 74 20 43 46 6f 6e 74 53 | 70 65 63 3a 3a 47 65 74 |t CFontS|pec::Get|
|000011f0| 53 69 7a 65 28 76 6f 69 | 64 29 20 63 6f 6e 73 74 |Size(voi|d) const|
|00001200| 0d 7b 0d 09 72 65 74 75 | 72 6e 20 66 53 69 7a 65 |.{..retu|rn fSize|
|00001210| 3b 0d 7d 0d 0d 0d 69 6e | 6c 69 6e 65 20 73 68 6f |;.}...in|line sho|
|00001220| 72 74 20 43 46 6f 6e 74 | 53 70 65 63 3a 3a 47 65 |rt CFont|Spec::Ge|
|00001230| 74 53 74 79 6c 65 28 76 | 6f 69 64 29 20 63 6f 6e |tStyle(v|oid) con|
|00001240| 73 74 0d 7b 0d 09 72 65 | 74 75 72 6e 20 66 53 74 |st.{..re|turn fSt|
|00001250| 79 6c 65 3b 0d 7d 0d 0d | 0d 69 6e 6c 69 6e 65 20 |yle;.}..|.inline |
|00001260| 73 68 6f 72 74 20 43 46 | 6f 6e 74 53 70 65 63 3a |short CF|ontSpec:|
|00001270| 3a 47 65 74 4d 6f 64 65 | 28 76 6f 69 64 29 20 63 |:GetMode|(void) c|
|00001280| 6f 6e 73 74 0d 7b 0d 09 | 72 65 74 75 72 6e 20 66 |onst.{..|return f|
|00001290| 4d 6f 64 65 3b 0d 7d 0d | 0d 69 6e 6c 69 6e 65 20 |Mode;.}.|.inline |
|000012a0| 55 49 6e 74 31 36 20 43 | 46 6f 6e 74 53 70 65 63 |UInt16 C|FontSpec|
|000012b0| 3a 3a 47 65 74 4c 69 6e | 65 48 65 69 67 68 74 28 |::GetLin|eHeight(|
|000012c0| 76 6f 69 64 29 0d 7b 0d | 09 55 49 6e 74 31 36 20 |void).{.|.UInt16 |
|000012d0| 6c 69 6e 65 48 65 69 67 | 68 74 3b 0d 09 55 49 6e |lineHeig|ht;..UIn|
|000012e0| 74 31 36 20 61 73 63 65 | 6e 74 3b 0d 09 55 49 6e |t16 asce|nt;..UIn|
|000012f0| 74 31 36 20 64 65 73 63 | 65 6e 74 3b 0d 09 0d 09 |t16 desc|ent;....|
|00001300| 47 65 74 46 6f 6e 74 4d | 65 74 72 69 63 73 28 6c |GetFontM|etrics(l|
|00001310| 69 6e 65 48 65 69 67 68 | 74 2c 20 61 73 63 65 6e |ineHeigh|t, ascen|
|00001320| 74 2c 20 64 65 73 63 65 | 6e 74 29 3b 0d 09 0d 09 |t, desce|nt);....|
|00001330| 72 65 74 75 72 6e 20 6c | 69 6e 65 48 65 69 67 68 |return l|ineHeigh|
|00001340| 74 3b 0d 7d 0d 0d 0d 23 | 65 6e 64 69 66 00 00 00 |t;.}...#|endif...|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001380| 00 00 01 00 00 00 01 76 | 00 00 00 76 00 00 00 52 |.......v|...v...R|
|00001390| 00 00 00 8d 00 2d 00 00 | 00 26 07 ff 00 00 cc 3c |.....-..|.&.....<|
|000013a0| 00 60 00 00 00 03 00 00 | 00 00 00 00 00 00 00 00 |.`......|........|
|000013b0| 08 43 46 6f 6e 74 73 2e | 68 6f 02 00 00 00 54 45 |.CFonts.|ho....TE|
|000013c0| 58 54 43 57 49 45 01 00 | 00 00 01 40 00 00 00 00 |XTCWIE..|...@....|
|000013d0| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 00 01 40 |..TEXTCW|IE.....@|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 a8 ed c3 b9 00 00 | 12 cd 00 00 01 c8 00 00 |........|........|
|00001400| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001480| 00 00 00 1e 00 3c 00 24 | 02 6d 02 fd 00 3c 00 24 |.....<.$|.m...<.$|
|00001490| 02 6d 02 fd 00 00 00 00 | 00 00 00 00 00 00 00 00 |.m......|........|
|000014a0| 00 00 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 00 |.....H..|Monaco..|
|000014b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014c0| 00 00 00 00 00 00 00 00 | 00 03 00 04 00 44 00 0b |........|.....D..|
|000014d0| 02 fc 02 8b 00 44 00 0b | 02 fc 02 8b ad df 21 56 |.....D..|......!V|
|000014e0| 00 00 0a 26 00 00 0a 26 | 00 00 09 73 01 00 00 00 |...&...&|...s....|
|000014f0| 00 04 00 01 00 01 00 00 | 01 00 00 00 01 76 00 00 |........|.....v..|
|00001500| 00 76 00 00 00 52 01 f0 | 0f 3c 26 32 00 00 00 1c |.v...R..|.<&2....|
|00001510| 00 52 00 01 4d 50 53 52 | 00 01 00 12 4d 57 42 42 |.R..MPSR|....MWBB|
|00001520| 00 00 00 2a 03 f0 ff ff | 00 00 00 00 00 00 00 00 |...*....|........|
|00001530| 03 ed ff ff 00 00 00 22 | 00 00 00 00 03 f0 ff ff |......."|........|
|00001540| 00 00 00 6e 00 00 00 00 | 00 00 00 00 00 00 00 00 |...n....|........|
|00001550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+